package com.qin.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qin.mall.domain.OmsCompanyAddress;
import com.qin.mall.service.OmsCompanyAddressService;
import com.qin.mall.mapper.OmsCompanyAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 覃剑
* @description 针对表【oms_company_address(公司收发货地址表)】的数据库操作Service实现
* @createDate 2022-11-10 14:01:04
*/
@Service
public class OmsCompanyAddressServiceImpl extends ServiceImpl<OmsCompanyAddressMapper, OmsCompanyAddress>
    implements OmsCompanyAddressService{

    @Autowired
    private OmsCompanyAddressMapper companyAddressMapper;
    /**
     * 获取全部收货地址
     */
    @Override
    public List<OmsCompanyAddress> getList() {
        List<OmsCompanyAddress> companyAddresses = companyAddressMapper.selectList(null);
        return companyAddresses;
    }
}




